<?php
if (!defined('ACCESS')) {
    exit('Access denied.');
}

class DBBase
{
    protected static $table_prefix = TABLE_PREFIX;
    protected static $db_container = array();

    public static function __instance($database = DB_ID)
    {
        if (@self::$db_container[$database] == null) {
            self::$db_container[$database] = new MyPdo($database);
            return self::$db_container[$database];
        }
        return self::$db_container[$database];
    }
}
